//
//  WmcMediaAlbumModel.swift
//  YPWatermarkCamera
//
//  Created by 周诗松 on 2022/6/11.
//

import Foundation
import YPNetwork

struct WmcMediaAlbumModel: YPNetworkJsonProtocol {
    
    enum PhotoType {
        case none
        case allPhoto
        case watermarkPhoto
        case teamMember
    }
    
    /// 标题
    var title: String = ""
    
    /// 照片数量
    var num: Int = 0
    
    /// 图片url
    var url: String = ""
    
    /// 类型 all-全部 wmc-水印分类
    var type: String = ""
    
    var resourceType: Int = 0
    
    func typeEnum() -> PhotoType {
        if type == "all" {
            return .allPhoto
        } else if type == "wmc" {
            return .watermarkPhoto
        } else if type == "member" {
            return .teamMember
        }
        else {
            return .none
        }
    }
}
